package com.ruoyi.machine.base.fitting.mapper;

import com.ruoyi.machine.base.fitting.domain.Fitting;
import com.ruoyi.machine.base.fitting.domain.FittingCond;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FittingMapper {
    /**
     * 查找配件
     * @param cond
     * @return
     */
    public List<Fitting> selectFittingList(FittingCond cond);

    /**
     * 根据名称和规格查找配件
     * @return
     */
    public Fitting selectFittingByName(@Param("fittingName")String fittingName, @Param("fittingSpecification")String fittingSpecification);

    /**
     * 添加配件
     * @param fitting
     * @return
     */
    public int insertFitting(Fitting fitting);

    /**
     * 更新配件
     * @param fitting
     * @return
     */
    public int updateFitting(Fitting fitting);

    /**
     * 删除配件
     * 仅修改删除标志
     * @param fitting
     * @return
     */
    public int updateFittingDeleteFlag(Fitting fitting);
}
